﻿//#define TRACKING
#define VERBOSE
//#define SIMPLIFY

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MathConsole.Properties;
using Mathematics;
using Mathematics.Expressions;
using Mathematics.Parser;

namespace MathConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write(Resources.ConsoleHeader);
            Console.WriteLine();
           

            string line;
            do
            {
                var domain = Domain.CurrentDomain;
                for (int i = 1; i <= domain.Depth; i++)
                    Console.Write(".");
                Console.Write(":>");
                line = Console.ReadLine();
                if (string.IsNullOrWhiteSpace(line))
                    continue;

            } while (Commands.EvaluateCommands(line)); 
        }

    }
}
